/**
 * Created by Administrator on 2017-11-25
 */
define(function (require, exports, module) {
    'use strict';
    function addsceniclist() {
        var scenicname = $('#scenicname').val();
        var scenicdes = $('#scenicdes').val();
        $.ajax({
            url: '/scenicspot/addsceniclist',
            type: 'POST',
            data: {
                scenicname:scenicname,
                scenicdes:scenicdes,
                userid:user.id
            },
            success: function (res) {
                if (!res.success) {
                    alert(res.msg);
                    return;
                }else{
                    alert('成功!')
                }
            }
        })
    }

    return {
        addsceniclist:addsceniclist
    }
})